Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
Loading...
Searching...
No Matches
print_buffer.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2015 Roc authors
3 *
4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 */
8
9//! @file roc_core/target_stdio/roc_core/print_buffer.h
10//! @brief Print buffer to stdout.
11
12#ifndef ROC_CORE_PRINT_BUFFER_H_
13#define ROC_CORE_PRINT_BUFFER_H_
14
15#include "roc_core/stddefs.h"
16
17namespace roc {
18namespace core {
19
20//! Print bytes buffer.
21void print_buffer(const uint8_t* data, size_t size);
22
23//! Print floats buffer.
24void print_buffer(const float* data, size_t size);
25
26//! Print a slice of bytes buffer.
27void print_buffer_slice(const uint8_t* inner,
28 size_t inner_size,
29 const uint8_t* outer,
30 size_t outer_size);
31
32//! Print a slice of floats buffer.
33void print_buffer_slice(const float* inner,
34 size_t inner_size,
35 const float* outer,
36 size_t outer_size);
37
38} // namespace core
39} // namespace roc
40
41#endif // ROC_CORE_PRINT_BUFFER_H_
void print_buffer_slice(const uint8_t *inner, size_t inner_size, const uint8_t *outer, size_t outer_size)
Print a slice of bytes buffer.
void print_buffer(const uint8_t *data, size_t size)
Print bytes buffer.
Root namespace.
Commonly used types and functions.